import { AGCError } from "@hw-agconnect/core-ohos";
import { FunctionErrorCode } from "./AGCFunctionErrorCode";

export class AGCFunctionException extends AGCError {
  constructor(error: FunctionErrorCode) {
    super(error.code, error.message);
    (this as any).__proto__ = AGCFunctionException.prototype;
  }
}